package com.news.news.modle;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * Created by 罗铠威 on 2023/8/29 15:08
 * type:
 */
@Data
@Component
public class Admin {

    private Integer id;
    private String account;
    private String password;
    private String gender;
    private String adminName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operTime;
    private Integer[] roles;
    private List<Role> role;
    private String adminToken;
    private Integer pageNum=1;//数量
    private Integer pageSize=2;//页长
    private Admin operAdmin;
    private String phone;
    private String address;
    private  Integer type;


}
